package com.sacc.controller;

import com.power.common.model.CommonResult;
import com.sacc.service.OrderStateAllService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 滚~韬
 * @date 2022/4/20 14:37
 */
@RestController
@RequestMapping("/order/courier")
public class OrderCourierController {
    @Autowired
    private OrderStateAllService orderStateAllService;
    @PostMapping("/add")
    public CommonResult Add(@RequestParam String orderNumber,@RequestParam String courierNumber){
        return orderStateAllService.AddCourierNumber(orderNumber,courierNumber);
    }
    @GetMapping("/get")
    public CommonResult Get(@RequestParam String orderNumber){
        return orderStateAllService.GetCourierNumber(orderNumber);
    }
}
